-- GENERATED SPELL FOR [Ravager Specimen] --


function spell0_17199(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17199', 557, 1)
end

function spell1_17199(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17199', 0, 1)
end

function spell2_17199(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17199', 0, 1)
end

function spell3_17199(pUnit, Event) --@Ravage,n/a--
pUnit:FullCastSpellOnTarget(50518,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17199', 2000, 1)
end

function spell4_17199(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17199', 15000, 1)
end

function Sorts_17199(pUnit, Event)
local choix_sorts_17199 = math.random(0, 4)
if choix_sorts_17199 == 0 then
pUnit:RegisterEvent('spell0_17199', 1, 1)
end
if choix_sorts_17199 == 1 then
pUnit:RegisterEvent('spell1_17199', 1, 1)
end
if choix_sorts_17199 == 2 then
pUnit:RegisterEvent('spell2_17199', 1, 1)
end
if choix_sorts_17199 == 3 then
pUnit:RegisterEvent('spell3_17199', 1, 1)
end
if choix_sorts_17199 == 4 then
pUnit:RegisterEvent('spell4_17199', 1, 1)
end
end

function mob17199_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17199', math.random(1500, 3000), 1)
end

function mob17199_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17199_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17199_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17199, 1, 'mob17199_Action')
RegisterUnitEvent(17199, 2, 'mob17199_Leave')
RegisterUnitEvent(17199, 3, 'mob17199_Kill')
RegisterUnitEvent(17199, 4, 'mob17199_Die')
